<template>
<stUCommentSubjectStar ref="star" :comment-subject-id="commentSubjectId" :group-flag="$config.dynamicGroupFlag" @starItemClick="starItemClick"></stUCommentSubjectStar>
</template>

<script>
/**
 * 动态的评论点赞列表页
 */
import stUCommentSubjectStar from '../../../../../../../components/comment/web/components/app/uni-app/st-u-comment-subject-star/st-u-comment-subject-star.vue'
export default {
  components: {stUCommentSubjectStar},
  data () {
    return {
      commentSubjectId: '',
    }
  },
  onLoad(options){
    this.commentSubjectId = options.commentSubjectId
  },
  // 下拉刷新
  onPullDownRefresh(){
    this.$refs.star.refreshStarData(()=>{uni.stopPullDownRefresh()})
  },
  onReachBottom(){
    this.$refs.star.loadStarData()
  },
  methods: {
    // 跳转到用户详情页
    starItemClick(item){
      uni.navigateTo({
        url: '/pages/index/userDetail?userId=' + item.ownerUserId
      })
    }
  }
}
</script>

<style scoped>

</style>